<%@ page pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <title>教师登录</title>

    <meta content="no-cache" http-equiv="pragma">
    <meta content="no-cache" http-equiv="cache-control">
    <meta content="0" http-equiv="expires">
    <meta content="keyword1,keyword2,keyword3" http-equiv="keywords">
    <meta content="This is my page" http-equiv="description">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    <script type="text/javascript">
        function funvalidate() {
            var strname = document.getElementById("txtname").value;
            var strpwd = document.getElementById("txtpwd").value;
            var flag = false;
            if (strname === "") alert("用户名不能为空，请输入！");
            else if (strpwd === "") alert("密码不能为空，请输入！");
            else flag = true;
            return flag;
        }
    </script>
    <style type="text/css">
        a:link {
            text-decoration: none;
        }

        a:visited {
            text-decoration: none;
        }

        a:hover {
            text-decoration: none;
        }

        a:active {
            text-decoration: none;
        }

        .title {
            font-size: 40px;
            text-align: center;
            margin: 30px;
            font-size: 60px;
            font-family: 楷体;
        }

        .content {
            text-align: center;
        }

        table {
            margin: 0 auto;
            text-align: center;
        }

        .content table {
            font-size: 27px;
        }

        .content table .btn input {
            font-size: 22px;
        }

        .si {
            font-size: 31px;
        }

        /*.url {*/
        /*    font-size: 25px;*/
        /*    text-align: center;*/
        /*}*/

        .clear {
            clear: both;
        }
    </style>
</head>

<body>
<div class="title">教师登录</div>
<div class="content">
    <form action="${ctx}/TeacherLoginAction" method="post">
        <table>
            <tr>
                <td>用户名</td>
                <td><input class="si" id="txtname" name="username"/></td>
            </tr>
            <tr>
                <td>密码</td>
                <td><input class="si" id="txtpwd" name="password" type="password"/></td>
            </tr>
            <tr class="btn">
                <td><input type="reset" value="重置"/></td>
                <td><input onclick="return funvalidate()" type="submit" value="登录"/></td>
            </tr>
        </table>
        ${mess }
    </form>
    <div class="clear"></div>
    <%--    <a href="<%=request.getContextPath()%>" class="url">返回首页</a>--%>
</div>
</body>
</html>
